package cn.iotab.iotkit.transport.api.access.model.custom;

public class ProtocolConstant {

    public static final String MSG_VERSION_1_0 = "1.0";

    public static final String PROP_PREFIX = "prop.";
    public static final String EVENT_PREFIX = "event.";
    public static final String FUNC_PREFIX = "func.";
    /**
     * firmware
     */
    //平台推送升级信息，平台向设备
    public static final String FIRMWARE_PUSH = "firmware.push";
    //设备主动检查升级，设备向平台
    public static final String FIRMWARE_REQUEST = "firmware.request";
    //设备上报固件信息，设备向平台
    public static final String FIRMWARE_REPORT = "firmware.report";
    //设备上报升级进度，设备向平台
    public static final String FIRMWARE_PROGRESS = "firmware.progress";

    public static final Integer NEED_ACK = 1;
    public static final Integer NO_NEED_ACK = 0;

    public static final Integer CODE_SUCCESS = 200;
    public static final Integer CODE_NOT_FOUND = 404;
    public static final Integer CODE_SERVER_ERROR = 500;

    public static final String KEY_PROP = "props";

}
